/* 1. Main Layout Containers */
.content-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.top-split {
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    gap: 20px;
}

.record-card {
    background-color: var(--green);
    color: var(--white);
    margin-bottom: 30px;
    padding: 25px;
    border-top: none;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 15px;
}

.team-title h2 {
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.team-title p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: .9;
}

.fhs-logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--white);
}

.baseball-section-title {
    color: var(--green);
    border-bottom: 3px double var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.record-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.record-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.stat-value {
    font-size: 1rem;
    font-weight: 800;
}

.standings-card {
    margin-bottom: 30px;
    /*max-width: 400px;*/
}

.standings-table td {
    padding: 10px 5px;
}

.standings-table .stat-value {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 900;
    color: #333;
}

.standings-table td:first-child {
    width: 35%;
}

.highlight-row {
    background-color: #f0f7f4; 
    border-left: 4px solid var(--talon-green);
}

.border-left {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.first-middle-column {
    margin-bottom: 30px;
}

.opponent-col {
    justify-content: center;
}

.opponent-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    white-space: nowrap;
}

.schedule-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.date-col {
    width: 1%;
    padding-right: 15px;
}

.at-vs {
    font-size: 0.8rem;
    color: #888888;
    width: 15px;
    text-align: right;
    font-weight: 500;
}

.logo-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: white; 
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
}

.logo-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.school-name {
    font-weight: 600;
    color: var(--talon-green);
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.res-tag {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
}

.res-tag.win {
    background-color: var(--correct-green);
    color: #1a1a1a;
}

.res-tag.loss {
    background-color: var(--error-red);
    color: #1a1a1a;
}

.score-text {
    font-weight: bold;
}

/* 2. Stats Section Layout (The Grid) */
.stats-section {
    width: 100%;
}

.stats-grid {
    display: grid;
    /* This makes the cards wrap automatically */
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 3. The Card & Typography */
.section-title {
    color: var(--green);
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: left;
}

.stats-card {
    color: #000;
}

.stats-title {
    font-size: 1.2rem;
    color: var(--talon-green);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. The Table (Inside the cards) */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
}

.stats-table th {
    color: #666;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.stats-table td {
    padding: 7.5px 0;
    border-bottom: 1px solid #f9f9f9;
}

/* Row Styling */
.stats-table tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

.stats-table tbody tr:hover {
    background-color: #f0f7f4;
}

/* 5. Utility Classes (Names & Values) */
.player-name {
    font-weight: bold;
    color: var(--talon-green);
}

.stat-value {
    font-weight: 800;
    color: #1a1a1a;
}

.white {
    color: var(--white);
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* 6. Responsiveness */
@media (max-width: 870px) {
    .top-split, .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .record-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .stat-box.border-left {
        border: none;
    }
}